package cc.yaomm.service.basic.entity.user;

import cc.yaomm.common.basic.base.SuperEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * Created by XQL on 2021/6/9.
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("users_permissions_ref")
public class UsersPermissionsRef extends SuperEntity {

    /**
     * BIGINT   NOT NULL COMMENT '用户ID，roles(id)',
     */
    private Long userId;

    /**
     * BIGINT   NOT NULL COMMENT '角色ID，roles(id)',
     */
    private Long roleId;

    /**
     * BIGINT   NOT NULL COMMENT '权限ID，permissions(id)',
     */
    private Long permissionId;

    /**
     * CHAR(32) NOT NULL COMMENT '资源CODE，resources(code)'
     */
    private String resourceCode;

}
